package com.shuoyue.ycgk.appcatch;

import android.content.Context;
import android.os.Environment;

import java.io.File;

public class FileUtil {
    /**
     * 获取保存路径
     *
     * @return
     */
    public static String getPath(Context context) {
        File appDir = new File(Environment.getExternalStorageDirectory(), "一锤公考");
        if (!appDir.exists()) {
            appDir.mkdir();
        }
        return appDir.getPath();
    }

    public static File getPathVideoCatch(Context context) {
        File appDir = new File(Environment.getExternalStorageDirectory().getPath() + "一锤公考/缓存");
        if (!appDir.exists()) {
            appDir.mkdir();
        }
        return appDir;
    }

}
